//
//  NoDataCell.m
//  TourPlay
//
//  Created by dllo on 15/12/8.
//  Copyright © 2015年 王军岐. All rights reserved.
//

#import "NoDataCell.h"

@implementation NoDataCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}
- (void)createSubViews
{
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 30 * AUTOSCREEN_HEIGHT)];
    label.backgroundColor = [UIColor clearColor];
    label.text = @"还没有活动~";
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:15.f];
    [self.contentView addSubview:label];
    [label release];
    
    [self addColorChangedBlock:^{
        
        label.normalTextColor = [UIColor colorWithRed:0.75 green:0.74 blue:0.75 alpha:1];
        label.nightTextColor = [ColorSingleton shareSingleton].cellTitleColor;
    }];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
